(setq exec-path (append exec-path '("/home/skatebill/project/anaconda3/bin/")))  

(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/"))
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line


(add-to-list `custom-theme-load-path "/home/skatebill/.emacs.d/emacs-color-theme-solarized")
(load-theme 'solarized t)
(set-frame-parameter nil 'background-mode 'dark)    ;;选择solarized dark
(set-terminal-parameter nil 'background-mode `dark)
(enable-theme 'solarized)

(require 'smex) ; Not needed if you use package.el
(smex-initialize) ; Can be omitted. This might cause a (minimal) delay
                  ; when Smex is auto-initialized on its first run.
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
;; This is your old M-x.
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)

(require 'elpy)
(elpy-enable)
(elpy-use-ipython)

(setq python-shell-interpreter "ipython"
    python-shell-interpreter-args "--simple-prompt -i")


(require 'window-number)
(window-number-mode);enable window-number
(window-number-meta-mode)

(require 'evil)
(evil-mode 1)

(require 'org)
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

(require 'projectile)
(require 'helm-projectile)

;; 默认全局使用
(projectile-global-mode)
;; 默认打开缓存
(setq projectile-enable-caching t)
;; 使用f5键打开默认文件搜索
(global-set-key (kbd "<f4>") 'helm-projectile-find-file)
